package imnu.work.imnu0713_work01;

import java.util.Scanner;

public class Test_05 {
    //输入一个年份，判断这个年份是否是闰年
    public static void main(String[] args) {
        System.out.println("请输入一个年份：");
        Scanner sc = new Scanner(System.in);
        while(true) {
            int year = sc.nextInt();
            if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
                System.out.println("您输入的年份为闰年！");
            }else{
                System.out.println("您输入的年份为平年！");
            }
        }
    }
}
